package com.zkq.graduate.service.impl;

import com.zkq.graduate.mapper.ColleageMapper;
import com.zkq.graduate.pojo.Colleage;
import com.zkq.graduate.service.ColleageService;
import org.apache.commons.collections4.ListUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author zhangkaiqiang
 * @Date 2020/1/3  16:20
 * @Description TODO
 */
@Service(value = "colleageService")
public class ColleageServiceImpl implements ColleageService {



	@Resource
	private ColleageMapper colleageMapper;

	@Override
	public List<Colleage> findAll() {
		List<Colleage> colleageList=colleageMapper.findAll();
		return ListUtils.emptyIfNull(colleageList);
	}
}
